package com.atguigu.mall.mallproduct.vo;

import com.atguigu.mall.mallproduct.entity.PmsSkuImagesEntity;
import com.atguigu.mall.mallproduct.entity.PmsSkuInfoEntity;
import com.atguigu.mall.mallproduct.entity.PmsSpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * @author fuc
 * @create 2020-11-26
 */
@Data
public class SkuItemVo {

  /** 1.sku基本信息获取 */
  PmsSkuInfoEntity info;

  List<PmsSkuImagesEntity> images;

  PmsSpuInfoDescEntity desp;

  /** 5.获取spu的规格参数信息 */
  List<SpuItemAttrGroupVo> groupAttrs;

  @Data
  public static class SkuItemSaleAttrVo {
    private Long attrId;
    private String attrName;
    private List<String> attrValue;
  }

  @Data
  public static class SpuItemAttrGroupVo {
    private String groupName;
    private List<SpuBaseAttrVo> attrs;
  }

  @Data
  public static class SpuBaseAttrVo {
    private String attrName;
    private String attrValue;
  }
}
